Skip to content

Support for channels#1

Merged
megaadam merged 4 commits intomasterfrom
support-for-CHANNELS
Feb 1, 2022
Merged

Support for channels#1
megaadam merged 4 commits intomasterfrom
support-for-CHANNELS

Conversation

@megaadam
Copy link
Copy Markdown
Collaborator

@TobbeEdgeware @TSonono @nilsandgren @lithammer
Enjoy!

It seems after all that you are supposed merge upstream from your own fork.

@megaadam
Copy link
Copy Markdown
Collaborator Author

It would be nice to hear your views before I PR to grafov

Copy link
Copy Markdown

@TobbeEdgeware TobbeEdgeware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is way too many changes and to just add CHANNELS to the master playlist.

Especially if this should be submitted as a PR it must be focused on the one thing that it addresses and make it without big changes to any files.

Comment thread M3U8.md
IETF drafts notes
-----------------

[IETF](http://ietf.org) document currently in Draft status. Different versions of the document introduce changes of HLS protocol playlist formats. Latest version of the HLS protocol is version 7.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do this crappy updates on HLS version which has nothing to do with Channels?

If you do this, do this properly. The latest draft of HLS is https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-10 and the latest version of HLS is 10.

I'd suggest to just drop this and the next changes to the repo.

Comment thread reader.go Outdated
case "CHANNELS":
channels, err := strconv.Atoi(v)
if err != nil {
return fmt.Errorf("non-integer value \"%s\" for CHANNELS attribute", v)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use %q instead of "%s"

Comment thread writer.go
p.buf.WriteRune('"')
}
p.buf.WriteRune('\n')
if alt.Channels != 0 {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must go before the newline just above.

Comment thread sample-playlists/from-apple/master.m3u8 Outdated
@@ -0,0 +1,152 @@
#EXTM3U
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this extremely long list to check for one simple attribute?
And why remove media-playlist-large and add media-playlist-long instead?

Comment thread reader_test.go Outdated
}
}

func TestDecodeMediaPlaylistLong(t *testing.T) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this test have to do with channels?

Copy link
Copy Markdown
Collaborator Author

@megaadam megaadam Jan 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing, technically, but:
the other Channels-PR grafov#168 had an increase of the Playlist size. I was making sure that was not necessary

@megaadam megaadam force-pushed the support-for-CHANNELS branch from 494c07e to 610edb6 Compare January 31, 2022 11:13
Copy link
Copy Markdown

@TobbeEdgeware TobbeEdgeware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@megaadam
Copy link
Copy Markdown
Collaborator Author

megaadam commented Feb 1, 2022

I should also add CHANNEL tests for the writer. But I need to merge and move on now.

@megaadam megaadam merged commit 38bb922 into master Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants